<template>
  <div>
    <button v-on:click="fn">点击打印内容</button>
    <button @click="fn">简写的事件绑定</button>
  </div>
</template>

<script>
export default {
  methods: {
    fn(e) {
      console.log(e)
      console.log('点击了button按钮')
    },
  },
}
</script>

<style></style>
